package cn.itsource.basic.utils;

import lombok.Data;


@Data
public class AjaxResult {

	private boolean success = true;
	private String message = "操作成功!";
	//创建一个属性，专门用来响应后端的结果值
	private Object resultObj;


	public AjaxResult(){

	}
	public AjaxResult(String message){
		this.success=false;
		this.message =message;
	}

	public  static AjaxResult me(){
		return  new AjaxResult();
	}
	public AjaxResult setResultObj(Object resultObj){
		this.resultObj = resultObj;
		return this;
	}
}
